<?php
$sqla = 'select ClientID,ClientNIF,ClientNom,ClientDirec from tt_cliente where ClientSts = 1';
$combo_cli = '';
$resa = $mysqli->query($sqla) or die($mysqli->error.__LINE__);
if ($resa){
	while ($rowa = $resa->fetch_assoc()){
		$combo_cli = $combo_cli ."<option title='".$rowa['ClientNIF']." - ".$rowa['ClientDirec']."' value='".$rowa['ClientID']."'>".$rowa['ClientID']." - ".$rowa['ClientNom']."</option>";
	}
	echo $combo_cli;
	$resa->close();
	$mysqli->check_result();
}
?>

